package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

public class InviteRecord implements Serializable {
    private Long id;
    private String inviteCode;
    private Long inviterId;
    private Integer status;

    List<InviteeRecord> invitees;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;


    public InviteRecord() {
    }

    public InviteRecord(Long id, String inviteCode, Long inviterId, Integer status, Date createTime, Date expireTime) {
        this.id = id;
        this.inviteCode = inviteCode;
        this.inviterId = inviterId;
        this.status = status;
        this.createTime = createTime;
        this.expireTime = expireTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return inviteCode
     */
    public String getInviteCode() {
        return inviteCode;
    }

    /**
     * 设置
     * @param inviteCode
     */
    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    /**
     * 获取
     * @return inviterId
     */
    public Long getInviterId() {
        return inviterId;
    }

    /**
     * 设置
     * @param inviterId
     */
    public void setInviterId(Long inviterId) {
        this.inviterId = inviterId;
    }

    /**
     * 获取
     * @return status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return expireTime
     */
    public Date getExpireTime() {
        return expireTime;
    }

    /**
     * 设置
     * @param expireTime
     */
    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public String toString() {
        return "InviteRecord{id = " + id + ", inviteCode = " + inviteCode + ", inviterId = " + inviterId + ", status = " + status + ", createTime = " + createTime + ", expireTime = " + expireTime + "}";
    }
}
